pp108 : Define Conditions and Actions

Define Conditions and Actions

This topic describes the process of defining conditions (rules) and actions.

Rules dictate the manner in which a business object reacts to a situation, and eventually charts the course of a business process. You can model the behavior of data or business objects using rules.
You have to set properties to the conditions and define actions as part of building the rules. Once the rules are created, the Business Event Response is created and listed on under workspace documents or project content tree.
You can create rule actions on top of rules that are performed when rule conditions are met.

Restriction
The steps and processes of building rules are similar to that of the Decision Table, with some exceptions. The Define Conditions and Actions page differs from the Decision Table.

In Decision Table

In BAM

You have to create the Data template.

The Data template is automatically created.

A popup notification appears to select the attributes.

The selected attributes are made available on the left pane of the Conditions and Actions page.

By default, the Properties tab is visible.

The functionalities of both the Properties and Namespaces tabs are handled by BAM, they are not visible to you. However, by default, the Behavior tab is visible.

The Namespaces is enabled.

The Namespaces tab is not applicable.

In the Properties pane, the Condition template option of the field Value Type is supported.

On the Properties pane, the Condition template option of the field Value Type is supported for the temporal conditions, in which the condition is modeled using the LEAD_TIME attribute. Refer the field Value Type under the section Setting Properties of Conditions in a Decision Table from the Process Platform documentation on how to use the condition template. In order to use Condition Templates, you have to add them by the following reference, Reusing Application Artifacts. For example: Right-click the project or the folder > Add Runtime References > BAM Condition Templates > Lead Time Greater than and other possible options. This is provided for user comfort, user can select any of the templates for defining temporal condition. For more information on Conditional Template, refer to Conditional Template. Fill in the following Parameters:

  • Mins
  • Hours
  • Days

You can create multiple rules.

You can create only one rule.

The right-click (of the mouse) functionalities for the rule header are supported.

Does not support.

You can use only the following actions in BAM:

  • Trigger Business Process
  • Invoke Web Service
    Note: Format Content if you have selected Model Email option.
  • Send Notification

Limitation: You cannot build conditions with 'Or' option as in Decision Table, and only 'And' option is supported.

Tip:
For more information on building rules refer to building rules of Building a Decision Table.

Click Finish to create the Business Event Response. The created Business Event Response appears under Project content tree or Workspace document.

Related tasks

Formatting Content